package com.demo.enums;

import com.baomidou.mybatisplus.annotation.EnumValue;

/**
 * 性别枚举，对应数据库字段User表sex字段
 */
public enum Sex {

    MALE(1, "男"),

    FEMALE(2, "女");

    @EnumValue
    private final Integer code;

    private final String value;

    Sex(Integer code, String value) {
        this.code = code;
        this.value = value;
    }
}
